const fs = require('fs')
let content = ''
try {
	const pathList = require("./src/pages.json")
	for (let i of pathList.pages) {
		content += `${i.style.navigationBarTitleText}：/${i.path} \n`
	}
} catch (err) {
	console.error('请检查pages.json中格式是否正确；是否有注释导致错误乱码等')
}
try {
	const data = fs.writeFileSync(`${__dirname}/all_path.txt`, content)
	//file written successfully
} catch (err) {
	console.error(err)
}
